package com.dqsf.demo_springboot.model;

public class Hero {
    private Integer hId;
    private String name;
    private Integer hp;

    public Hero(Integer hId, String name, Integer hp) {
        this.hId = hId;
        this.name = name;
        this.hp = hp;
    }

    public Integer gethId() {
        return hId;
    }

    public void sethId(Integer hId) {
        this.hId = hId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getHp() {
        return hp;
    }

    public void setHp(Integer hp) {
        this.hp = hp;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("Hero{");
        sb.append("hId=").append(hId);
        sb.append(", name='").append(name).append('\'');
        sb.append(", hp=").append(hp);
        sb.append('}');
        return sb.toString();
    }
}
